﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SingleColumn.Master"
    Inherits="System.Web.Mvc.ViewPage<Documents.web.Models.DocumentFilterDemoModel>" %>

<asp:Content ID="Content2" ContentPlaceHolderID="TitleContent" runat="server">
    Document Filter Demo
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">

    <script src="../../Scripts/Presenters/DashboardPresenter.js" type="text/javascript"></script>

    <script type="text/javascript">
        var eventHub = new EventHub();
        var dashboardPresenter = new DashboardPresenter(eventHub);
        dashboardPresenter.RegisterEventListeners();               
    </script>

</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cphTopContent" runat="server">
    <div class="roundedbox clearfix">
        <span id="boxlogo" class="floatleft"></span>
        <h1 class="pagetitle logoonleft floatleft">
            Welsh Clinical Portal : <span>Document Search</span></h1>
    </div>
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="cphNavigation" runat="server">
    <ul class="tabs clearfix">
        <li>
            <%= Html.RouteLink("Workspace", new { controller = "Home", action = "Dashboard" })%></li>
        <li>Alerts and Warnings</li>
        <li class="selected">
            <%= Html.RouteLink("Clinical Documents", new { controller = "Home", action = "DocumentsPage" })%>
        </li>
        <li>Medicines Transcribing</li>
        <li>Radiology</li>
        <li>Pathology</li>
        <li>Urology</li>
    </ul>
</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="cphSingleColumn" runat="server">
    <div class="roundedbox clearfix">
        <div class="paging">
            <span class="currentpage">Showing: 31-40</span> of 355 | <a href="#">&#9664 Prev 10</a>
            | <a href="#">Next 10 &#9654</a>
        </div>
        <div class="filtering">
            <div class="roundedbox clearfix filterheader">
                <h2>
                    Document Search</h2>
                <div class="floatleft" style="width:380px">
                    <label style="width:120px">
                        Document type:</label><% Html.RenderPartial("DocumentTypeDropdownList", Model.DocumentTypes); %>
                </div>
                
                <div class="floatleft" style="margin-left:10px">
                    <label>
                        Location:</label><% Html.RenderPartial("LocationDropdownList", Model.Locations); %>
                </div>
                
          
                <div class="floatleft">
                    <label style="margin-left: 10px">
                        Consultant code:
                    </label>
                    <input type="text" style="width: 80px" />
                </div>
               <br />
               <div style="clear:both; margin-top:15px" class="clearfix">
                    <div class="floatleft" style="width:380px">
                    <label style="width:120px">
                        Created between:
                    </label>
                    <input type="text" style="width: 100px" />&nbsp;and&nbsp;<input type="text" style="width: 100px" />
                    </div>
                     <div class="floatleft" style="margin-left: 10px">
                    <label>
                        Discharge between:
                    </label>
                    <input type="text" style="width: 80px" />&nbsp;and&nbsp;<input type="text" style="width: 80px" />
                    </div>
                </div>
                <div style="clear:both; margin-top:15px" class="clearfix">
                    <div class="floatleft clearfix">
                    <p style="clear:both" class="clearfix">
                    <label style="width:170px">
                        Requires countersigning
                    </label> <input type="checkbox" value="countersignYes" />&nbsp;&nbsp;<input type="checkbox" value="countersignYes" />
                     </p>
                     <p style="clear:both" class="clearfix">
                    <label style="clear:both;width:170px">
                        Draft
                    </label><input type="checkbox" value="countersignYes" />&nbsp;&nbsp;<input type="checkbox" value="countersignYes" />
                    </p>
                    <p style="clear:both" class="clearfix">
                    <label style="clear:both;width:170px">
                        Highly sensitive
                    </label><input type="checkbox" value="countersignYes" />&nbsp;&nbsp;<input type="checkbox" value="countersignYes" />
                    </p>
                    </div>
                </div>
            </div>
        </div>
        <table cellpadding="0" cellspacing="0" id="filterresults">
            <thead>
                <tr>
                    <th>
                        Document type
                    </th>
                    <th>
                        Patient details
                    </th>
                    <th>
                        Creation date
                    </th>
                    <th>
                        Last updated
                    </th>
                    <th>
                        Consultant code
                    </th>
                    <th>
                        Status
                    </th>
                </tr>
            </thead>
            <tbody>
                <tr class="odd">
                    <td style="text-align: center">
                        <h2>
                            Discharge Advice Letter</h2>
                        <div>
                            <button name="ss" value="View">
                                View</button></div>
                    </td>
                    <td>
                        <h2>
                            Peter Phillips</h2>
                        <div class="details">
                            <span class="label">NHS no:</span>124478645, <span class="label">PAS no:</span>Z0333776
                            <br />
                            <span class="label">36, Hookland Road, Porthcawl, BRIDGEND, CF36 5SF</span>
                            <br />
                            <span class="label">Location:</span><span style="color:red">Discharged on 13th Apr 2012</span>
                        </div>
                    </td>
                    <td>
                        21st Jan 2012
                    </td>
                    <td>
                        23rd March 2012<br />
                        <span class="label">By:</span>System
                    </td>
                    <td>
                        CC099
                    </td>
                    <td>
                        <ul>
                            <li>Requires countersigning</li>
                            <li>Draft</li>
                        </ul>
                    </td>
                </tr>
                <tr class="even">
                    <td style="text-align: center">
                        <h2>
                            Discharge Advice Letter</h2>
                        <div>
                            <button name="ss" value="View">
                                View</button></div>
                    </td>
                    <td>
                        <h2>
                            Peter Phillips</h2>
                        <div class="details">
                            <span class="label">NHS no:</span>124478645, <span class="label">PAS no:</span>Z0333776
                            <br />
                            <span class="label">36, Hookland Road, Porthcawl, BRIDGEND, CF36 5SF</span>
                            <br />
                            <span class="label">Location:</span>ITU
                        </div>
                    </td>
                    <td>
                        21st Jan 2012
                    </td>
                    <td>
                        23rd March 2012<br />
                        <span class="label">By:</span>System
                    </td>
                    <td>
                        CC099
                    </td>
                    <td>
                        <ul>
                            <li>Requires countersigning</li>
                            <li>Draft</li>
                        </ul>
                    </td>
                </tr>
                <tr class="odd">
                    <td style="text-align: center">
                        <h2>
                            Discharge Advice Letter</h2>
                        <div>
                            <button name="ss" value="View">
                                View</button></div>
                    </td>
                    <td>
                        <h2>
                            Peter Phillips</h2>
                        <div class="details">
                            <span class="label">NHS no:</span>124478645, <span class="label">PAS no:</span>Z0333776
                            <br />
                            <span class="label">36, Hookland Road, Porthcawl, BRIDGEND, CF36 5SF</span>
                            <br />
                            <span class="label">Location:</span>A&amp;E - Major Acute
                        </div>
                    </td>
                    <td>
                        21st Jan 2012
                    </td>
                    <td>
                        23rd April 2012<br />
                        <span class="label">By:</span>A.A. Milne
                    </td>
                    <td>
                        CC099
                    </td>
                    <td>
                        <ul>
                            <li>Requires countersigning</li>
                            <li>Draft</li>
                            <li>Highly sensitive</li>
                        </ul>
                    </td>
                </tr>
                <tr class="even">
                    <td style="text-align: center">
                        <h2>
                            Discharge Advice Letter</h2>
                        <div>
                            <button name="ss" value="View">
                                View</button></div>
                    </td>
                    <td>
                        <h2>
                            Peter Phillips</h2>
                        <div class="details">
                            <span class="label">NHS no:</span>124478645, <span class="label">PAS no:</span>Z0333776
                            <br />
                            <span class="label">36, Hookland Road, Porthcawl, BRIDGEND, CF36 5SF</span>
                            <br />
                            <span class="label">Location:</span>Ward 1
                        </div>
                    </td>
                    <td>
                        21st Jan 2012
                    </td>
                    <td>
                        15rd April 2012<br />
                        <span class="label">By:</span>Bobby Davro
                    </td>
                    <td>
                        CC099
                    </td>
                    <td>
                        <ul>
                            <li>Requires countersigning</li>
                            <li>Draft</li>
                        </ul>
                    </td>
                </tr>
            </tbody>
        </table>
        <div class="paging">
            <span class="currentpage">Showing: 31-40</span> of 355 | <a href="#">&#9664 Prev 10</a>
            | <a href="#">Next 10 &#9654</a>
        </div>
    </div>
</asp:Content>
